package com.ysstech.etfmanage.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * ETF台账权益信息
 * </p>
 *
 * @author lishuangliang
 * @since 2021-02-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("etf_rights")
public class Rights extends Model<Rights> {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;

    /**
     * 基金编码
     */
    @TableField("ACCOUNT_ID")
    private String accountId;
    /**
     * 权益日期
     */
    @TableField("FDATE")
    private LocalDate fdate;
    /**
     * 权益数量
     */
    @TableField("AMOUNT")
    private BigDecimal amount;
    /**
     * 权益实际数量
     */
    @TableField("REAL_AMOUNT")
    private BigDecimal realAmount;
    /**
     * 权益派息
     */
    @TableField("DIVIDEND_MONEY")
    private BigDecimal dividendMoney;
    /**
     * 权益实际派息
     */
    @TableField("REAL_DIVIDEND_MONEY")
    private BigDecimal realDividendMoney;
    /**
     * 权益价值
     */
    @TableField("VALUE_MONEY")
    private BigDecimal valueMoney;
    /**
     * 权益实际价值
     */
    @TableField("REAL_VALUE_MONEY")
    private BigDecimal realValue;

    /**
     * 状态
     */
    @TableField("STATUS")
    private Integer status;
    /**
     * 添加时间
     */
    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    /**
     * 添加用户
     */
    @TableField("ADD_USER")
    private String addUser;

    /**
     * 修改时间
     */
    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    /**
     * 修改用户
     */
    @TableField("EDIT_USER")
    private String editUser;
    /**
     * 删除原因
     */
    @TableField("DELETE_REASON")
    private String deleteReason;
    @Override
    protected Serializable pkVal() {
        return null;
    }

}
